<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>仙女跟随</title>
		<style type="text/css">
			img{
				position: fixed;
			}
		</style>
	</head>
	<body>
		<img id="img" src="images/mao.gif" >
		<script type="text/javascript">
			var img = document.getElementById("img")
			window.onmousemove = function(e){
				img.style.left = e.pageX -25 + "px";
				img.style.top = e.pageY -25 + "px";
			}
		</script>
	</body>
</html>
